<template>
  <div class="m-hcity">
    <dl>
      <dt>热门城市：</dt>
      <dd
        v-for="item in list"
        :key="item">
        {{ item }}
      </dd>
    </dl>
  </div>
</template>
<script>
export default {
  name: 'HotCity',
  data() {
    return {
      list: []
    }
  },
  async mounted() {
    const {
      status,
      data: { list }
    } = await this.$axios.get('/geo/hotCity')
    this.list = status == 200 ? list : []
  }
}
</script>

<style lang="scss">
@import '@/assets/css/changeCity/hot.scss';
</style>
